# -*- encoding: utf-8 -*-
# @Time       :  20:40
# @Author     : yuxian
# @Email      : 1503889663@qq.com
# @File       : serializers.py
# @SoftWare   : PyCharm
from django.contrib.auth.models import User
from rest_framework.serializers import ModelSerializer


class UserSerializer(ModelSerializer):
    class Meta:
        model = User
        fields = ["id", 'username', 'email', 'first_name']
